The battle system automatically detects when the aniamtion is on the last frame.
